package com.atguigu.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: 19shusheng.com
 * @Description:
 * @Date: Created in 23:39 2020/10/30
 * @Modified By:
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE",fallback = PaymentFeignServiceImpl.class)
public interface OrderService {
    @GetMapping("/payment/paymentInfoError/{id}")
    public String paymentInfo_error(@PathVariable("id") Integer id) throws InterruptedException;
    @GetMapping("/payment/paymentInfoOk/{id}")
    public String paymentInfo_ok(@PathVariable("id") Integer id);
}
